Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> h1 { background-color: #6495ed; } p { background-color: #e0ffff; } div { background-color: #b0c4de; } </style> </head> <body> <h1>CSS background-color example!</h1> <div> This is a text inside a div element. <p>This paragraph has its own background color.</p> We are still in the div element. </div> </body> <!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss_background-color_elements by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:23:02 GMT --> </html>
Result:
Try it Yourself - © w3schools.com